package com.yehuishou.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yehuishou.dao.EnterpriseBackDao;
import com.yehuishou.pojo.EnterpriseBack;
import com.yehuishou.service.EnterpriseBackService;


@Service
public class EnterpriseBackServiceImpl implements EnterpriseBackService{

	
	@Resource
	private EnterpriseBackDao enterpriseBackDao;

	@Override
	public List<EnterpriseBack> selectEnterpriseback(EnterpriseBack ep) {
		// TODO Auto-generated method stub
		return enterpriseBackDao.selectEnterpriseback(ep);
	}

	@Override
	public void updateEnterpriseback(EnterpriseBack ep) {
		// TODO Auto-generated method stub
		ep.setStatus(1);
		enterpriseBackDao.updateEnterpriseback(ep);
	}

	@Override
	public void deleteOne(Integer id) {
		// TODO Auto-generated method stub
		enterpriseBackDao.deleteOne(id);
	}

	@Override
	public void deleteEnters(Integer[] td_s) {
		enterpriseBackDao.deleteEnters(td_s);
		
	}
	
	

}
